package buildinpackage

import (
	"bytes"
	"sync"
)

type Info struct {
	mu sync.Mutex
	// ... other fields, e.g.:
	Str string
}

func Update(info *Info) {
	info.mu.Lock()
	info.Str = "new value"
	info.mu.Unlock()
}

type SyncedBuffer struct {
	lock   sync.Mutex
	buffer bytes.Buffer
}
